GetElements(IEnumerable<ICatalogEntity>,ICatalog,bool) Method

Summary

Enumerate the ICatalogEntity properties annotated with EntityElementAttribute.

Syntax
C#
VB
C++
public static CatalogElement[] GetElements( 
   IEnumerable<ICatalogEntity> entities, 
   ICatalog catalog, 
   bool ignoreNullValueItems 
) 
  
Public Overloads Shared Function GetElements( _ 
   ByVal entities As IEnumerable(Of ICatalogEntity), _ 
   ByVal catalog As ICatalog, _ 
   ByVal ignoreNullValueItems As Boolean _ 
) As CatalogElement() 
public: 
static array<CatalogElement^>^ GetElements(  
   IEnumerable<ICatalogEntity^>^ entities, 
   ICatalog^ catalog, 
   bool ignoreNullValueItems 
)  

Parameters

entities
A collection of ICatalogEntity which properties will be returned.

catalog
The ICatalog which describes the provided entities.

ignoreNullValueItems
If this parameter is set to true, properties that have null (Nothing in VB) values will not be returned.

Return Value

An array of CatalogElement describing the properties annotated with EntityElementAttribute.

Remarks

The method will enumerate all the ICatalogEntity objects.

For each ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated. A key for each ICatalogEntity will be retrieved using ICatalogEntity.CatalogKey method. A key for each property will be retrieved using the following method: If the EntityElementAttribute.Name has a value (not null or empty string) then it will be used as the key value otherwise the actual Name of the System.Reflection.PropertyInfo will be used as the key. The CatalogDescriptor will use the ICatalog object to find the information of this catalog element and fill them in a CatalogElement object.

Requirements

Target Platforms

Help Version 20.0.2020.5.27
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly